package com.zhang.pojo;


import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.NoArgsConstructor;

@Api(tags = "供应商实体类")
@Data
@NoArgsConstructor
@TableName("t_supplier")
public class SupplierBean {

    @ApiModelProperty("供应商id")
    @TableId(value = "pk_supplierId",type = IdType.AUTO)
    private Integer id;

    @ApiModelProperty("供应商名")
    @TableField(value = "s_name")
    private String name;

    @ApiModelProperty("供应商负责人")
    @TableField(value = "s_person")
    private String person;

    @ApiModelProperty("负责人电话")
    @TableField(value = "s_phone")
    private String phone;

    @ApiModelProperty("供应商地址")
    @TableField(value = "s_address")
    private String address;

    @ApiModelProperty("供应商范围")
    @TableField(value = "s_scope")
    private String scope;


    public SupplierBean(String name, String person, String phone, String address, String scope) {
        this.name = name;
        this.person = person;
        this.phone = phone;
        this.address = address;
        this.scope = scope;
    }


    @Override
    public String toString() {
        return "SupplierBean{" +
                "id=" + id +
                ", name='" + name + '\'' +
                ", person='" + person + '\'' +
                ", phone='" + phone + '\'' +
                ", address='" + address + '\'' +
                ", scope='" + scope + '\'' +
                '}' + "\n";
    }
}
